Package pl.wendigo.chrome.api.emulation

Contains DevTools Protocol Emulation domain implementation accessible via EmulationDomain class.

Types

CanEmulateResponse
Link copied to clipboard
data class CanEmulateResponse(result: Boolean)
Represents response frame that is returned from Emulation#canEmulate operation call.
DisabledImageType
Link copied to clipboard
enum DisabledImageType : Enum<DisabledImageType>
Enum of image types that can be disabled.
DisplayFeature
Link copied to clipboard
data class DisplayFeature(orientation: String, offset: Int, maskLength: Int)
EmulationDomain
Link copied to clipboard
class EmulationDomain : Domain
This domain emulates different environments for the page.
MediaFeature
Link copied to clipboard
data class MediaFeature(name: String, value: String)
ScreenOrientation
Link copied to clipboard
data class ScreenOrientation(type: String, angle: Int)
Screen orientation.
SetCPUThrottlingRateRequest
Link copied to clipboard
data class SetCPUThrottlingRateRequest(rate: Double)
Represents request frame that can be used with Emulation#setCPUThrottlingRate operation call.
data class SetDefaultBackgroundColorOverrideRequest(color: RGBA?)
Represents request frame that can be used with Emulation#setDefaultBackgroundColorOverride operation call.
SetDeviceMetricsOverrideRequest
Link copied to clipboard
data class SetDeviceMetricsOverrideRequest(width: Int, height: Int, deviceScaleFactor: Double, mobile: Boolean, scale: Double?, screenWidth: Int?, screenHeight: Int?, positionX: Int?, positionY: Int?, dontSetVisibleSize: Boolean?, screenOrientation: ScreenOrientation?, viewport: Viewport?, displayFeature: DisplayFeature?)
Represents request frame that can be used with Emulation#setDeviceMetricsOverride operation call.
SetDisabledImageTypesRequest
Link copied to clipboard
data class SetDisabledImageTypesRequest(imageTypes: List<DisabledImageType>)
Represents request frame that can be used with Emulation#setDisabledImageTypes operation call.
SetDocumentCookieDisabledRequest
Link copied to clipboard
data class SetDocumentCookieDisabledRequest(disabled: Boolean)
Represents request frame that can be used with Emulation#setDocumentCookieDisabled operation call.
SetEmitTouchEventsForMouseRequest
Link copied to clipboard
data class SetEmitTouchEventsForMouseRequest(enabled: Boolean, configuration: String?)
Represents request frame that can be used with Emulation#setEmitTouchEventsForMouse operation call.
SetEmulatedMediaRequest
Link copied to clipboard
data class SetEmulatedMediaRequest(media: String?, features: List<MediaFeature>?)
Represents request frame that can be used with Emulation#setEmulatedMedia operation call.
SetEmulatedVisionDeficiencyRequest
Link copied to clipboard
data class SetEmulatedVisionDeficiencyRequest(type: String)
Represents request frame that can be used with Emulation#setEmulatedVisionDeficiency operation call.
SetFocusEmulationEnabledRequest
Link copied to clipboard
data class SetFocusEmulationEnabledRequest(enabled: Boolean)
Represents request frame that can be used with Emulation#setFocusEmulationEnabled operation call.
SetGeolocationOverrideRequest
Link copied to clipboard
data class SetGeolocationOverrideRequest(latitude: Double?, longitude: Double?, accuracy: Double?)
Represents request frame that can be used with Emulation#setGeolocationOverride operation call.
SetIdleOverrideRequest
Link copied to clipboard
data class SetIdleOverrideRequest(isUserActive: Boolean, isScreenUnlocked: Boolean)
Represents request frame that can be used with Emulation#setIdleOverride operation call.
SetLocaleOverrideRequest
Link copied to clipboard
data class SetLocaleOverrideRequest(locale: String?)
Represents request frame that can be used with Emulation#setLocaleOverride operation call.
SetNavigatorOverridesRequest
Link copied to clipboard
data class SetNavigatorOverridesRequest(platform: String)
Represents request frame that can be used with Emulation#setNavigatorOverrides operation call.
SetPageScaleFactorRequest
Link copied to clipboard
data class SetPageScaleFactorRequest(pageScaleFactor: Double)
Represents request frame that can be used with Emulation#setPageScaleFactor operation call.
SetScriptExecutionDisabledRequest
Link copied to clipboard
data class SetScriptExecutionDisabledRequest(value: Boolean)
Represents request frame that can be used with Emulation#setScriptExecutionDisabled operation call.
SetScrollbarsHiddenRequest
Link copied to clipboard
data class SetScrollbarsHiddenRequest(hidden: Boolean)
Represents request frame that can be used with Emulation#setScrollbarsHidden operation call.
SetTimezoneOverrideRequest
Link copied to clipboard
data class SetTimezoneOverrideRequest(timezoneId: String)
Represents request frame that can be used with Emulation#setTimezoneOverride operation call.
SetTouchEmulationEnabledRequest
Link copied to clipboard
data class SetTouchEmulationEnabledRequest(enabled: Boolean, maxTouchPoints: Int?)
Represents request frame that can be used with Emulation#setTouchEmulationEnabled operation call.
SetUserAgentOverrideRequest
Link copied to clipboard
data class SetUserAgentOverrideRequest(userAgent: String, acceptLanguage: String?, platform: String?, userAgentMetadata: UserAgentMetadata?)
Represents request frame that can be used with Emulation#setUserAgentOverride operation call.
SetVirtualTimePolicyRequest
Link copied to clipboard
data class SetVirtualTimePolicyRequest(policy: VirtualTimePolicy, budget: Double?, maxVirtualTimeTaskStarvationCount: Int?, waitForNavigation: Boolean?, initialVirtualTime: TimeSinceEpoch?)
Represents request frame that can be used with Emulation#setVirtualTimePolicy operation call.
SetVirtualTimePolicyResponse
Link copied to clipboard
data class SetVirtualTimePolicyResponse(virtualTimeTicksBase: Double)
Represents response frame that is returned from Emulation#setVirtualTimePolicy operation call.
SetVisibleSizeRequest
Link copied to clipboard
data class SetVisibleSizeRequest(width: Int, height: Int)
Represents request frame that can be used with Emulation#setVisibleSize operation call.
UserAgentBrandVersion
Link copied to clipboard
data class UserAgentBrandVersion(brand: String, version: String)
Used to specify User Agent Cient Hints to emulate.
UserAgentMetadata
Link copied to clipboard
data class UserAgentMetadata(brands: List<UserAgentBrandVersion>?, fullVersion: String?, platform: String, platformVersion: String, architecture: String, model: String, mobile: Boolean)
Used to specify User Agent Cient Hints to emulate.
VirtualTimePolicy
Link copied to clipboard
enum VirtualTimePolicy : Enum<VirtualTimePolicy>
advance: If the scheduler runs out of immediate work, the virtual time base may fast forward to allow the next delayed task (if any) to run; pause: The virtual time base may not advance; pauseIfNetworkFetchesPending: The virtual time base may not advance if there are any pending resource fetches.